package com.mydemo.spring.dynamicroutes.entity;

/**
 * @name 路由配置
 * @auth DIY
 * @date 2020/10/13 17:42
 **/
public class MyRoute {


    private String routeId;
    private String routeGroup;
    private int routeWeight = 10;
    private String routePathPattern;
    private String routeUri;


    public MyRoute(String routeId, String routeGroup, int routeWeight, String routePathPattern, String routeUri) {
        this.routeId = routeId;
        this.routeGroup = routeGroup;
        this.routeWeight = routeWeight;
        this.routePathPattern = routePathPattern;
        this.routeUri = routeUri;
    }


    public String getRouteId() {
        return routeId;
    }

    public String getRouteGroup() {
        return routeGroup;
    }

    public int getRouteWeight() {
        return routeWeight;
    }

    public String getRoutePathPattern() {
        return routePathPattern;
    }

    public String getRouteUri() {
        return routeUri;
    }


    @Override
    public String toString() {
        return "MyRoute{" +
                "routeId='" + routeId + '\'' +
                ", routeGroup='" + routeGroup + '\'' +
                ", routeWeight=" + routeWeight +
                ", routePathPattern='" + routePathPattern + '\'' +
                ", routeUri='" + routeUri + '\'' +
                '}';
    }
}
